﻿using ShanNiang.Mvvm.ViewModels;
using ShanNiang.Service.Attributes;
using ShanNiang.Service.Constants;
using ShanNiang.Service.Scaner;
using System.Runtime.Versioning;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Input;

namespace ShanNiang.Packing.UserControls
{
    /// <summary>
    /// PackingControl.xaml 的交互逻辑
    /// </summary>
    [MenuControl(CommonData.MENU_PACKBOX, "装箱", 1, CommonData.MENU_ICON_PACKBOX)]
    [SupportedOSPlatform("windows")]
    public partial class PackBoxControl : UserControl
    {

        //private readonly PackingViewModel _packingViewModel;
        public PackBoxControl(PackBoxViewModel packingViewModel)
        {
            InitializeComponent();
            DataContext = packingViewModel;

        }

        private void Grid_PreviewKeyDown(object sender, KeyEventArgs e)
        {
            e.Handled = true; // 取消回车键的默认行为
        }
    }
}
